//
// Created by qiang on 2020/3/27.
//

#ifndef STDAYCPP_RIGHTTRIANGLE_H
#define STDAYCPP_RIGHTTRIANGLE_H


#include "Triangle.h"

class RightTriangle : public Triangle {

public :
    // 构造函数。直角三角形可以只初始化两个直角边
    RightTriangle(double a, double b);

    // 获取三角形周长
    virtual double GetCircumference();

    // 获取三角形面积
    virtual double GetArea();

private:
};


#endif //STDAYCPP_RIGHTTRIANGLE_H
